<?php
declare(strict_types=1);

namespace App\Resource\Group\Party;


use Illuminate\Http\Resources\Json\JsonResource;

class UserResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            "id" => $this->user_id,
            "nickname" => $this->nickname,
            "avatar" => $this->head_picture,
            "gender" => $this->sex,
        ];
    }
}